
  function openwindow_area()  
  {  
    window.open('admin.php?controller=Admin_MoviesInfo&action=Area',null,'width=650,height=270,left='+(window.screen.availWidth -100)/2+',top='+(window.screen.availHeight + 80)/2+',scrollbars=yes');  
  } 
  
  function openwindow_language()  
  {  
    window.open('admin.php?controller=Admin_MoviesInfo&action=Language',null,'width=730,height=270,left='+(window.screen.availWidth -100)/2+',top='+(window.screen.availHeight + 80)/2+',scrollbars=yes');  
  }  
  
  function openwindow_type()  
  {  
    window.open('admin.php?controller=Admin_MoviesInfo&action=Type',null,'width=650,height=270,left='+(window.screen.availWidth -100)/2+',top='+(window.screen.availHeight + 80)/2+',scrollbars=yes');  
  }   
  
  function openwindow_parea()  
  {  
    window.open('admin.php?controller=Admin_PersonsInfo&action=Parea',null,'width=650,height=270,left='+(window.screen.availWidth -100)/2+',top='+(window.screen.availHeight + 80)/2+',scrollbars=yes');  
  } 
  
  function dosubmit_area(){
  	var areaname = document.getElementsByName("areas");
    var groupAreaName = "";
    for (var i = 0; i < areaname.length; i++){
        if (areaname[i].checked){
            groupAreaName += areaname[i].value + ",";
        }
    }
    groupAreaName = groupAreaName.substring(0,groupAreaName.length-1);   
    opener.document.form1.areaname.value = groupAreaName;
    
    var areaid = document.getElementsByName("areasid");
    var groupAreaId = "";
    for (var i = 0; i < areaid.length; i++){
        if (areaid[i].checked){
            groupAreaId += areaid[i].value + ",";
        }
    }
    groupAreaId = groupAreaId.substring(0,groupAreaId.length-1);   
    opener.document.form1.areaid.value = groupAreaId;
   
    window.close()  
  }
  
  function dosubmit_language(){
  	var languagename = document.getElementsByName("languages");
    var groupLanguageName = "";
    for (var i = 0; i < languagename.length; i++){
        if (languagename[i].checked){
            groupLanguageName += languagename[i].value + ",";
        }
    }
    groupLanguageName = groupLanguageName.substring(0,groupLanguageName.length-1);   
    opener.document.form1.languagename.value = groupLanguageName;
    
    var languageid = document.getElementsByName("languagesid");
    var groupLanguageId = "";
    for (var i = 0; i < languageid.length; i++){
        if (languageid[i].checked){
            groupLanguageId += languageid[i].value + ",";
        }
    }
    groupLanguageId = groupLanguageId.substring(0,groupLanguageId.length-1);   
    opener.document.form1.languageid.value = groupLanguageId;
   
    window.close()  
  }
  
  function dosubmit_type(){
  	var typename = document.getElementsByName("types");
    var groupTypeName = "";
    for (var i = 0; i < typename.length; i++){
        if (typename[i].checked){
            groupTypeName += typename[i].value + ",";
        }
    }
    groupTypeName = groupTypeName.substring(0,groupTypeName.length-1);   
    opener.document.form1.typename.value = groupTypeName;
    
    var typeid = document.getElementsByName("typesid");
    var groupTypeId = "";
    for (var i = 0; i < typeid.length; i++){
        if (typeid[i].checked){
            groupTypeId += typeid[i].value + ",";
        }
    }
    groupTypeId = groupTypeId.substring(0,groupTypeId.length-1);   
    opener.document.form1.typeid.value = groupTypeId;
    
    window.close()  
  }
  
  function CloseWin() //这个会提示是否关闭浏览器
  { 
  window.opener=null;
  window.open("","_self");
  window.close(); 
  }